<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('编辑转移任务')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-task-tranf-edit">
        <div class="col-md-12">
            <div class="form-group">
                <label class="col-sm-2 control-label">任务编号：</label>
                <div class="col-sm-9">
                    <input type="text" th:field="*{tranf.taskId}"  class="form-control" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">任务标题：</label>
                <div class="col-sm-9">
                    <input type="text" th:field="*{tranf.taskTitle}"  class="form-control" readonly>
                    <input id="transferId" name="transferId" th:value="${tranf.transferId}" type="hidden"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">申请人员：</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" th:value="${tranf.userName}" th:field="*{tranf.userName}" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">申请原因：</label>
                <div class="col-sm-9">
                    <textarea type="text" style="height: 200px" name="transferReason" id="transferReason" multiple th:field="*{tranf.transferReason}" class="form-control" placeholder="请输入申请原因" required maxlength="255" ></textarea>
                </div>
            </div>
        </div>
    </form>
</div>

<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script type="text/javascript">
    var prefix = ctx + "system/task/tranf";

    $("#datetimepicker-startTime").datetimepicker();

    $("#form-task-tranf-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-task-tranf-edit').serialize());
        }
    }

</script>
</body>
</html>
